package com.clubs.coding.Controller;

import com.clubs.coding.Service.AthRecordService;
import com.clubs.coding.common.ApiRestResponse;
import com.clubs.coding.model.request.AthAdminRecordReq;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

@ResponseBody
@Controller
@RequestMapping("/admin")
public class AthAdminRecordController {
    @Autowired
    AthRecordService athRecordService;
/**
 * 课时管理
 * **/
@PostMapping("/record")
public ApiRestResponse record(@RequestBody @Valid AthAdminRecordReq athAdminRecordReq){
    athRecordService.record(athAdminRecordReq);
    return ApiRestResponse.success();
}
}
